// import axios from "axios";

// //创建个新的实例对象
// const request = axios.create({
//     baseURL: 'http://toutiao.itheima.net'
// })

// export default request

import request from '@/utils/request'

export const getChannels = () => {
    return request({ url: '/v1_0/channels' })
}

//获取用户频道列表接口
export const getMyChannels = () => {
    return request({
        url:'/v1_0/user/channels'
    })
}